package com.yizhe.service.impl;

import com.yizhe.dao.LoginRecodesMapper;
import com.yizhe.domain.LoginRecodes;
import com.yizhe.service.LoginRecodesService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by Administrator on 2016/11/24.
 */
@Service
public class LoginRecodesServiceImpl implements LoginRecodesService {

    @Resource
    private LoginRecodesMapper loginRecodesMapper;

    @Override
    public Integer saveLoginRecodes(LoginRecodes loginRecodes) {
        return loginRecodesMapper.insertEntity(loginRecodes);
    }

    @Override
    public LoginRecodes selectLoginRecodes(LoginRecodes loginRecodes) {
        return loginRecodesMapper.selectEntity(loginRecodes);
    }

    @Override
    public LoginRecodes getLastLoginRecodes(LoginRecodes loginRecodes) {
        return loginRecodesMapper.getLastLoginRecodes(loginRecodes);
    }
}
